using System.Web.Mvc;

namespace Genrsis.WorkitemTracking.Web.Infrastructure
{
    public class PartialViewLocationRestrictedWebFormViewEngine : RazorViewEngine
    {
        public PartialViewLocationRestrictedWebFormViewEngine()
        {
            PartialViewLocationFormats = new[]
                                             {
                                                 "~/Views/{1}/{0}.ascx",
                                                 "~/Views/Shared/{0}.ascx"
                                             };

            AreaPartialViewLocationFormats = new[]
                                                 {
                                                     "~/Areas/{2}/Views/{1}/{0}.ascx",
                                                     "~/Areas/{2}/Views/Shared/{0}.ascx",
                                                 };
        }

    }
}